package com.xq.shop.util;

import com.xq.shop.service.admin.IAdminService;
import com.xq.shop.service.admin.ICategoryParamService;
import com.xq.shop.service.admin.ICategoryService;
import com.xq.shop.service.admin.IMenuService;
import com.xq.shop.service.admin.IPrivilegeService;
import com.xq.shop.service.admin.IProductService;
import com.xq.shop.service.admin.IRoleService;
import com.xq.shop.service.admin.IUserService;

public class AdminServiceFactory {
	
	public static IProductService getProductService(){
		return (IProductService) BeanFactory.getBean("admin_product_service");
	}
	
	public static IAdminService getAdminService(){
		return (IAdminService) BeanFactory.getBean("admin_admin_service");
	}
	
	public static IMenuService getMenuService(){
		return (IMenuService) BeanFactory.getBean("admin_menu_service");
	}
	
	public static IRoleService getRoleService(){
		return (IRoleService) BeanFactory.getBean("admin_role_service");
	}
	
	public static IUserService getUserService(){
		return (IUserService) BeanFactory.getBean("admin_user_service");
	}
	
	public static IPrivilegeService getPrivilegeService(){
		return (IPrivilegeService) BeanFactory.getBean("admin_privilege_service");
	}
	
	public static ICategoryService getCategoryService(){
		return (ICategoryService) BeanFactory.getBean("admin_category_service");
	}
	
	public static ICategoryParamService getCategoryParamService(){
		return (ICategoryParamService) BeanFactory.getBean("admin_categoryParam_service");
	}
}